<?php

namespace app\index\model;

use think\Model;
use traits\model\SoftDelete;
use app\index\model\User as UserModel;

class Account extends Model{

    //与用户表一对一，主表用户表，附表账户表
    public function User(){

        return $this->belongsTo('User');
    }

}

?>